using CustomerContactSystem.Core.Infrastructure.Domain;

namespace CustomerContactSystem.Core.Model {
    public class UserGroup : Entity {
        public virtual string GroupName { get; set; }

        protected override void Validate() {
            if (string.IsNullOrEmpty(GroupName)) {
                AddBrokenRule(new BusinessRule("GroupName", "Group name is required!"));
            }
        }
    }
}